package com.wl.bbs.service;

import lombok.Data;

@Data
public class BizException extends Exception{

    private Object data;

    public BizException(String message, Object data) {
        super(message);
        this.data = data;
    }

    public BizException(String message, Object data, Throwable cause) {
        super(message, cause);
        this.data = data;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

}